﻿using Report.Entity;
using Report.Service;

namespace Report.Engine
{
    public class StartStep : ImageStep
    {
        public StartStep(Step step)
            : base(step)
        {
        }

        public override ExecuteResult Execute(ExportContext context)
        {
            WordProcessor wordProcessor = context.WordProcessor;

            wordProcessor.Prepare();

            wordProcessor.LoadTemplateDocument(ReportApplication.MapPath(context.ImageSetting.TemplateFile));

            base.Execute(context);

            return ExecuteResult.NextStep;
        }
    }
}
